package com.springboot.returndata.dto.blog;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;


/**
 * @ClassName UserEamilLoginDto
 * @Description
 * @Author zyj
 * @Date 2023/5/23 11:01
 * @Version 1.0
 **/
@Data
public class UserEamilLoginDto {

   @NotNull(message = "邮箱/用户不能为空")
    private String userEmail;

   @NotNull(message = "密码不能为空")
    @Pattern(regexp = "[A-Za-z0-9]{6,10}$", message = "密码不合法")
    private String passwd;

}
